import { NOTICE, HANDLE_NOTICE } from './api';
import { METHOD, request } from '@/utils/request';
//获取公告列表
export async function getNoticesList(params) {
  return request(NOTICE, METHOD.GET, params);
}
//添加公告
export async function postNotice(params) {
  return request(NOTICE, METHOD.POST, params);
}
//删除公告
export async function delNotice(params) {
  return request(HANDLE_NOTICE, METHOD.DELETE, params);
}

export default { getNoticesList, postNotice, delNotice };
